package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class PaidGoldShop implements Serializable {

	private static final long serialVersionUID = 1325349265974347949L;

	//fields
	private java.lang.Integer companyId;
	private java.lang.String domain;
	private java.sql.Timestamp startDate;
	private java.sql.Timestamp endDate;
	private java.lang.Integer status;
	private java.lang.String remark;
	private java.sql.Timestamp createTime;
	private java.lang.Integer operator;

	//default constructor
	public PaidGoldShop() {
	}

	//getter
	public java.lang.Integer getCompanyId() {
		return companyId;
	}
	public java.lang.String getDomain() {
		return domain;
	}
	public java.sql.Timestamp getStartDate() {
		return startDate;
	}
	public java.sql.Timestamp getEndDate() {
		return endDate;
	}
	public java.lang.Integer getStatus() {
		return status;
	}
	public java.lang.String getRemark() {
		return remark;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}
	public java.lang.Integer getOperator() {
		return operator;
	}

	//setter
	public void setCompanyId(java.lang.Integer companyId) {
		this.companyId = companyId;
	}
	public void setDomain(java.lang.String domain) {
		this.domain = domain;
	}
	public void setStartDate(java.sql.Timestamp startDate) {
		this.startDate = startDate;
	}
	public void setEndDate(java.sql.Timestamp endDate) {
		this.endDate = endDate;
	}
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}
	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	public void setOperator(java.lang.Integer operator) {
		this.operator = operator;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof PaidGoldShop))
			return false;

		final PaidGoldShop paidGoldShop = (PaidGoldShop)other;
		if (!this.companyId.equals(paidGoldShop.getCompanyId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(companyId).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("PaidGoldShop[")
			.append("companyId=").append(companyId).append(", ")
			.append("domain=").append(domain).append(", ")
			.append("startDate=").append(startDate).append(", ")
			.append("endDate=").append(endDate).append(", ")
			.append("status=").append(status).append(", ")
			.append("remark=").append(remark).append(", ")
			.append("createTime=").append(createTime).append(", ")
			.append("operator=").append(operator).append("]").toString();
	}
	
	///##########
	private String companyName;
	private String memberAccount;
	private String operatorName;

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getMemberAccount() {
		return memberAccount;
	}

	public void setMemberAccount(String memberAccount) {
		this.memberAccount = memberAccount;
	}

	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}
	
}